<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>会员登录页面</title>
    <script charset="UTF-8" src="<%=request.getContextPath()%>/js/jquery-1.12.4.min.js"></script>
    <script src="<%=request.getContextPath()%>/frontEndjs/loginVerify.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html {
            height: 100%;
            width: 100%;
            overflow: hidden;
            margin: 0;
            padding: 0;
            background-image: url("<%=request.getContextPath()%>/img/frontEndImg/register.jpg");
            background-repeat: no-repeat;
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        #loginMsg{
            float: left;
        }

        #loginDiv {
            width: 700px;
            margin: 0 auto;
            height: 380px;
            background-color: rgba(75, 81, 95, 0.3);
            box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
            border-radius: 5px;
        }

        #loginMsg{

        }

        .mag a {
            color: #fff;
            position: relative;
            top: 10px;
        }

        p:nth-of-type(1) {
            position: relative;
            top: 100px;
            color: azure;
        }

        p:nth-of-type(2) {
            position: relative;
            top: 130px;
            left: 140px;
            color: azure;
        }

        #username {
            width: 200px;
            margin-left: 15px;
            border-radius: 5px;
            border-style: hidden;
            height: 30px;
            background-color: rgba(216, 191, 216, 0.5);
            outline: none;
            color: #f0edf3;
            padding-left: 10px;
        }

        #password {
            width: 202px;
            margin-left: 15px;
            border-radius: 5px;
            border-style: hidden;
            height: 30px;
            background-color: rgba(216, 191, 216, 0.5);
            outline: none;
            color: #f0edf3;
            padding-left: 10px;
        }

        .button {
            border-color: cornsilk;
            background-color: rgba(201, 120, 21, .4);
            color: aliceblue;
            border-style: hidden;
            border-radius: 5px;
            width: 100px;
            height: 31px;
            font-size: 16px;
            margin-left: 20px;
        }

        #subDiv {
            text-align: center;
            margin-top: 30px;
            position: relative;
            top: 150px;
        }

        #subDiv a {
            color: #fff;
        }

        #loginMsg {
            text-align: center;
            color: aliceblue;
        }

        #mobilePhone_span{
            text-indent: 2em;
        }

        #password_span{
            text-indent: 2em;
        }

        .verify{
            color: darkgrey;
        }
        .verify_true{
            width: 30px;
            height: 30px;
            position: relative;
            left: 5px;
            top: 12px;
            background: url("../img/housing/formValidator/y.png") no-repeat;
            background-size: 23px 23px;
            color: green;
        }
        .verify_false{
            background: url("../img/housing/formValidator/n.png") no-repeat 0 15px;
            background-size: 23px 23px;
            color: red;
        }
    </style>
</head>
<body>
<form action="<%=request.getContextPath()%>/FrontEnd?type=checkName" id="form" method="post">
    <div id="loginDiv">
            <input type="hidden" value="<%=request.getContextPath()%>">

            <h1 id="loginMsg">用户登录</h1>

            <div class="mag" style="display:inline-block;">
                <a href="">管理员登录</a>
            </div>


            <p>用户名:<input id="username" name="mobilePhone" type="text"><span id="mobilePhone_span" required></span></p>

            <p>密码: <input id="password" name="password" type="password"><span id="password_span" required></span></p>

            <div id="subDiv">
                <input type="submit" class="button" value="登录">&nbsp;&nbsp;&nbsp;
                <a href="<%=request.getContextPath( )%>/frontEndjsp/registers.jsp">没有账号？点击注册</a>
            </div>
</form>
    </div>
</form>
</body>
</html>
